{template 'weheader'}
<style>
body{background-color:#f0f0f0;font-weight:300;}
.am-text-ir {color:#333;display:block;margin:0;height:30px;width:30px;background: url({if !empty($fans['tag']['avatar'])}{$fans['tag']['avatar']}{else}resource/images/noavatar_middle.gif{/if}) no-repeat left center;-webkit-background-size: 30px auto;background-size: 30px auto;}
a{color:#666}
.weui_tab a{color:#555}
.weui_navbar{line-height:20px;}
.weui_cells {margin-top:0;}
.weui_media_box.weui_media_text .weui_media_info {margin-top: 0px;}
.weui_tabbar_icon {height: 24px;}
.weui_bar_item_on .weui_tabbar_icon i {color: #09BB07;}
.weui_cell_bd i {color:#666;margin-left:20px;}
.weui_cell_bd p {padding:0;}
.weui_cells_title {margin:0;line-height:50px;height:50px;background-color:#f5f5f5;}
.weui_cells_title img {height:25px;border-radius:50%;}

.dayu_cells {overflow: hidden;position: relative;}
.sticky-fixed {width: 100%;position: fixed;bottom: 0;z-index:9998;}

.weui_actionsheet {background-color: transparent;}
.weui_actionsheet_action, .weui_actionsheet_menu{width:96%;border-radius:5px;margin:0 auto;}
.weui_actionsheet_action{margin:10px auto;}
</style>
{if $reid}
    <div class="weui_tab_bd">
	<div class="weui_cells_title">
		<span class="f16"><img src="{if !empty($fans['tag']['avatar'])}{$fans['tag']['avatar']}{else}resource/images/noavatar_middle.gif{/if}" class="middle"> {$fans['nickname']}</span>
		<a href="javascript:;" id="show-actions" class="right">{$subject}</a>
	</div>
			{php $i=1;}
	{loop $rows $item}
	<div onclick="location.href='{php echo $this->createMobileUrl('detail', array('id' => $item['rerid'], 'reid' => $reid))}'">
		<div class="weui_cells weui_cells_access">
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary">
					<span class="f13 f-green">{$i}.</span>{$item['member']} <i class="iconfont">&#xe601; {$item['mobile']}</i>
				</div>
				<div class="weui_cell_ft"></div>
			</div>
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary">
					<p class="f12 f-black"><i class="iconfont">&#xe603;</i> {$item['ordersn']}<span class="right"><i class="iconfont">&#xe622;</i> {$item['time']}</span></p>
				</div>
			</div>
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary">
					<p class="f12 f-black">
						{$item['item']['title']} <i class="iconfont f11">&#xe61a;</i> {$item['item']['price']}{if $item['num'] > 1}<span class="am-text-danger"> × {$item['num']}</span>{/if}
						<span class="right f-{$item['css']}">{$item['paytype']}</span>
					</p>
				</div>
			</div>
		</div>
		<div class="dayu_cells">
        <div class="weui_cell">
			<div class="weui_cell_bd weui_cell_primary f11 tcenter middle">
				{if $item['paystatus'] == 1 && $item['status'] !=9}<span class="weui_btn weui_btn_mini bg-blue left">未支付</span>
				{elseif $item['paystatus'] == 2 && $item['status'] !=9}<span class="weui_btn weui_btn_mini weui_btn_warn left">已支付</span>{/if}
				
			</div>
			<div class="weui_cell_ft">
				{if $item['status'] == 0}<span class="weui_btn weui_btn_mini weui_btn_default right">{$activity['state1']}</span>
				{elseif $item['status'] == 1}<span class="weui_btn weui_btn_mini bg-blue right">{$activity['state2']}</span>
				{elseif $item['status'] == 2}<span class="weui_btn weui_btn_mini weui_btn_warn right">{$activity['state4']}</span>
				{elseif $item['status'] == 3}<span class="weui_btn weui_btn_mini weui_btn_primary right">{$activity['state3']}</span>
				{elseif $item['status'] == 9}<span class="weui_btn weui_btn_mini weui_btn_warn right">{$activity['state5']}</span>
				{/if}
			</div>
		</div>
		</div>
    </div>
				{php $i++;}
	{/loop}
	{if $pager}<div class="p bg-gray" style="height:32px;">{$pager}</div>{/if}
    </div>
	<div class="weui_tabbar">
		<a href="{php echo $this->createMobileUrl('Mydayu_yuyuepay',array('weid' => $weid, 'id' => $reid))}" class="weui_tabbar_item {if $_GPC['status'] == ''}weui_bar_item_on{/if}">
			<div class="weui_tabbar_icon">
				<i class="iconfont">&#xe600;</i>
			</div>
			<p class="weui_tabbar_label">全部</p>
		</a>
		<a href="{php echo $this->createMobileUrl('Mydayu_yuyuepay',array('weid' => $weid, 'id' => $reid, 'status'=>0))}" class="weui_tabbar_item {if $_GPC['status'] == '0'}weui_bar_item_on{/if}">
			<div class="weui_tabbar_icon">
				<i class="iconfont">&#xe61f;</i>
			</div>
			<p class="weui_tabbar_label">{$activity['state1']}</p>
		</a>
		<a href="{php echo $this->createMobileUrl('Mydayu_yuyuepay',array('weid' => $weid, 'id' => $reid, 'status'=>1))}" class="weui_tabbar_item {if $_GPC['status'] == '1'}weui_bar_item_on{/if}">
			<div class="weui_tabbar_icon">
				<i class="iconfont">&#xe60a;</i>
			</div>
			<p class="weui_tabbar_label">{$activity['state2']}</p>
		</a>
		<a href="{php echo $this->createMobileUrl('Mydayu_yuyuepay',array('weid' => $weid, 'id' => $reid, 'status'=>2))}" class="weui_tabbar_item {if $_GPC['status'] == '2'}weui_bar_item_on{/if}">
			<div class="weui_tabbar_icon">
				<i class="iconfont">&#xe614;</i>
			</div>
			<p class="weui_tabbar_label">已取消</p>
		</a>
		<a href="{php echo $this->createMobileUrl('Mydayu_yuyuepay',array('weid' => $weid, 'id' => $reid, 'status'=>3))}" class="weui_tabbar_item {if $_GPC['status'] == '3'}weui_bar_item_on{/if}">
			<div class="weui_tabbar_icon">
				<i class="iconfont">&#xe613;</i>
			</div>
			<p class="weui_tabbar_label">{$activity['state3']}</p>
		</a>
	</div>
    <div id="actionSheet_wrap">
        <div class="weui_mask_transition" id="mask"></div>
        <div class="weui_actionsheet" id="weui_actionsheet">
            <div class="weui_actionsheet_menu">
			{loop $list $item}
				<div class="weui_actionsheet_cell"><a href="{php echo $this->createMobileUrl('Mydayu_yuyuepay', array('weid' => $item[weid], 'id' => $item[reid]))}">{$item['title']}</a></div>
			{/loop}
            </div>
            <div class="weui_actionsheet_action">
                <div class="weui_actionsheet_cell" id="actionsheet_cancel">取消</div>
            </div>
        </div>
    </div>

<script>
$("#show-actions").click(function(){
                    var mask = $('#mask');
                    var weuiActionsheet = $('#weui_actionsheet');
                    weuiActionsheet.addClass('weui_actionsheet_toggle');
                    mask.show().addClass('weui_fade_toggle').one('click', function () {
                        hideActionSheet(weuiActionsheet, mask);
                    });
                    $('#actionsheet_cancel').one('click', function () {
                        hideActionSheet(weuiActionsheet, mask);
                    });
                    weuiActionsheet.unbind('transitionend').unbind('webkitTransitionEnd');

                    function hideActionSheet(weuiActionsheet, mask) {
                        weuiActionsheet.removeClass('weui_actionsheet_toggle');
                        mask.removeClass('weui_fade_toggle');
                        weuiActionsheet.on('transitionend', function () {
                            mask.hide();
                        }).on('webkitTransitionEnd', function () {
                            mask.hide();
                        })
                    }
});

   
</script>
{php $footer_off = 1;}
{else}
<style>
.dayu-header {padding: 25px 0;}
.dayu-title {text-align: center;font-size: 25px;color: #3cc51f;font-weight: 400;margin: 0;}
.dayu-sub-title {color: #888;padding:0 10px;font-size: 14px;text-indent:2em;}
.dayu-content-padded {padding: 15px;}
.dayu-second-title {text-align: center;font-size: 24px;color: #3cc51f;font-weight: 400;margin: 0 15%;}
</style>
    <header class='dayu-header'>
      <h1 class="dayu-title">选择主题</h1>
    </header>
	
<div class="weui_tab" style="margin:0 5%">
{loop $list $item}
	<a href="{php echo $this->createMobileUrl('Mydayu_yuyuepay', array('weid' => $item[weid], 'id' => $item[reid]))}" class="weui_btn weui_btn_primary" style="color:#fff;">{$item['title']}</a>
{/loop}
</div>
{/if}
{php $share = 1;}
{template 'footers'}